﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
        class user {
            //三个公开变量，其他类里面的代码可以使用
            public string id { get; set; }
            public string name { get; set; }
            public string password { get; set; }

        public void use() 
        {
            Console.WriteLine("用户名:{0} \t账号:{1}\t 密码：{2}",this.name,this.id,this.password);
        }

        }
    class Program
    {
        static void Main(string[] args)
        {
            user u = new user();
            u.id = "080425";
            u.name = "张三";
            u.password = "0816";

            u.use();
        }
    } 
}
